<!DOCTYPE html>
<html>
<head>
    <title>优惠卡券</title>
<include file="Public/head"/>

	<link href="__CSS__/wxCoupon.css" rel="stylesheet">
	<link href="__CSS__/dataTables.bootstrap.css" rel="stylesheet">
	<link href="__CSS__/custom.css" rel="stylesheet">
	<link href="__CSS__/footable.core.css" rel="stylesheet">
	<style>
		.ibox-title h5 {
  			margin: 10px 0 0px;
		}
		select.input-sm {
  			height: 35px;
  			line-height: 35px;
		}
		.float-e-margins .btn-info{
			margin-bottom:0px;
		}
		.fa-paste{
			margin-right:7px;
			padding: 0px;
		}
		.dz-preview{
			display:none;
		}
		.ibox-title ul{ list-style: outside none none !important; margin: 0; padding: 0;}
		.ibox-title li { float: left;width: 30%; }
		#commonpage {float: right;margin-bottom: 10px;}
		#table-list-body .btn-st{background-color: #337ab7;border-color: #2e6da4;cursor:auto;}
		#select_Cardtype .i-checks label{cursor: pointer;}
		#ewmPopDiv .modal-body{text-align: center;}
	.modal-footer {text-align: center;}
	.modal-footer .btn {padding: 7px 30px;}
	.js_modify_quantity .fa{margin-left: 10px;}
	#ewmPopDiv .downewm{ font-size: 14px;padding: 15px;text-align: center;}
	.modal-body {padding: 20px 30px 15px;}
	#select_Cardtype p{ margin-bottom: 8px;}
	</style>
	<script src="__JS__/footable.all2.min.js"></script>
</head>

<body>
    <div id="wrapper">
<include file="Public/leftmenu"/>
        <div id="page-wrapper" class="gray-bg">
	     <include file="Public/top"/>
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>优惠卡券</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a>卡券列表</a>
                        </li>

                        <li class="active">
                            <strong>核销卡券</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
            	<div class="col-lg-12">
            	    <div class="ibox float-e-margins">
            	        <div class="ibox-title clearfix">
						<ul class="nav"> 
						<li><button class="btn btn-primary" id="pop_add_card"><i class="fa fa-plus"></i> 返回卡券列表 </button></li> 
						</ul> 
            	     </div>
<div class="ibox-content"> 
   <nav class="ui-nav clearfix"> 
    <!--<div class="pull-right common-helps-entry"> 
     <a href="" target="_blank"> <span class="help-icon"></span> 查看【收银台】使用教程 </a> 
    </div>--->
   </nav> 
   <div class="app__content js-app-main page-cashier">
    <div>
      <!-- 实时交易信息展示区域 --> 
      <div class="cashier-realtime"> 
       <div class="realtime-title-block clearfix"> 
        <h1 class="realtime-title">核销卡券</h1> 
       </div> 
      </div> 
      <div class="js-real-time-region realtime-list-box loading">
       <div class="widget-list">
        <div class="js-list-filter-region clearfix ui-box" style="position: relative;">
         <div class="widget-list-filter"></div>
        </div> 
        <div class="ui-box"> 
         <table class="ui-table ui-table-list" data-page-size="20" style="padding: 0px;"> 
          <thead class="js-list-header-region tableFloatingHeaderOriginal">
           <tr class="widget-list-header">
		    <th>编号</th>
            <th>卡券类型</th> 
           
	

         <th data-hide="phone">领取人</th>
		 <th data-hide="phone">状态</th>
		<th data-hide="phone">核销码</th>
		<th data-hide="phone">领取时间</th>
		<th data-hide="phone">核销时间</th>
			<th data-hide="phone">操作</th>
           </tr>
          </thead>
          <tbody class="js-list-body-region" id="table-list-body">
																	<notempty name="list">
																	
																		
<volist name="list" id="data">
           <tr class="widget-list-item">
            <td>{$data.id}</td>
					
			<td><eq name="data.type" value="1">体验券</eq><eq name="data.type" value="2">代金券</eq></td>
		
	<td>{$data.nickname}</td> 
         
		<td>
			<eq name="data.status" value="0">正常</eq>
			<eq name="data.status" value="1"><fontc color="red">已经使用</font></eq>

	</td>
		<td>{$data.code}</td> 
 <td>{$data.addtime}</td> 
  <td>{$data.sumtime}</td> 
			<td class="footable-visible footable-last-column"> 
			

			<button onclick="deltheOrder(this,{$data.id});" class="btn btn-sm btn-danger"><strong> 删 除 </strong></button></td>
           </tr>
		   </volist>
		    <else/>
		   <tr class="widget-list-item"><td colspan="8">暂无核销卡券信息</td></tr>
	       </notempty>
          </tbody> 
         </table> 
         <div class="js-list-empty-region"></div> 
        </div> 
        <div class="js-list-footer-region ui-box">
         <div class="widget-list-footer"></div>
        </div> 
       </div>
      </div> 
     </div>
    </div>
   </div> 
  </div>    
            	</div>
				{$page}
            </div>
        </div>
<include file="Public/footer"/>
        </div>
    </div>

		





</body>
    <!-- iCheck -->
    <script src="__JS__/icheck.min.js"></script>
 <script>
 $(document).ready(function(){

		  $("#pop_add_card").click(function(){
                  window.history.go(-1);
		   });
});
/*****删除处理******/
function deltheOrder(dom,id){
   if(confirm('您确定要删除此项？')){
		$.ajax({
			url: "s=Coupon/del_data&id="+id,
			type: "POST",
			dataType: "json",
			data:{id:id},
			success: function(res){
				if(res.error){
					swal({
        				title: "删除成功",
        					text: '',
        					type: "success"
    					}, function () {
        					$(dom).parent().parent('tr').remove();
   						});

				}
			}
		});
   }
}
 </script>
 
</html>